$(document).ready(function(){
   $(".view-page").click(function(){
       window.parent.location = "http://www.facebook.com/" + pid + "?sk=app_" + appId;
   });
});


